﻿using PowerHub.MES.Entities.BasicData;
using PowerHub.MES.Entities.Production;
using PowerHub.MES.Entities.Shopfloor;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.Entities.Crew
{
    /// <summary>
    /// 排班计划明细
    /// </summary>
    [Table("Crew_SchedulingPlanDetial")]
    public partial class Crew_SchedulingPlanDetial : BaseEntity
    {
        /// <summary>
        /// 排班计划Id
        /// </summary>
        public string? Crew_SchedulingPlanId { get; set; }
        /// <summary>
        /// 员工id
        /// </summary>
        public string? UserinfoId { get; set; }
        /// <summary>
        /// 工作站台id
        /// </summary>
        public string? WorkStationId { get; set; }
        /// <summary>
        /// 状态 选项：0=正常 -1=请假
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 任务id
        /// </summary>
        public string? ProductionTaskId { get; set; }
        
        /// <summary>
        ///原料id
        /// </summary>
        public string? MaterialId { get; set; }

        /// <summary>
        /// 任务量
        /// </summary>
        public int? SchedulingQuantity { get; set; }

        public virtual Production_ProductionTask? ProductionTask { get; set; }
        public virtual BasicData_Userinfo? Userinfo { get; set; }
        public virtual Shopfloor_WorkStation? WorkStation { get; set; }


    }
}
